package gui;

import gui.funcionarios.SelecionaFuncionario;
import java.awt.Component;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.BorderFactory;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.LayoutStyle;
import javax.swing.SwingConstants;
import javax.swing.border.BevelBorder;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MenuAltera.java
 *
 * Created on 11/11/2010, 22:16:18
 */


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
 *
 * @author Caio
 */
public class MenuAltera extends javax.swing.JPanel {

    /** Creates new form MenuAltera */
    public MenuAltera() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        jFrame1 = new javax.swing.JFrame();
        turma = new javax.swing.JButton();
        funcionario = new javax.swing.JButton();
        laboratorio = new javax.swing.JButton();
        serie = new javax.swing.JButton();
        disciplina = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        this.setLayout(null);
        {
        	caixaMaior = new JLabel();
        	caixaMaior.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        }
        sala = new javax.swing.JButton();
        this.add(sala);
        this.add(laboratorio);
        voltar = new javax.swing.JButton();
        this.add(voltar);
        this.add(funcionario);
        this.add(serie);
        this.add(disciplina);
        this.add(turma);
        this.add(jLabel1);
        this.add(caixaMaior);
        caixaMaior.setBounds(35, 121, 735, 397);

        javax.swing.GroupLayout jFrame1Layout = new javax.swing.GroupLayout(jFrame1.getContentPane());
        jFrame1.getContentPane().setLayout(jFrame1Layout);
        jFrame1Layout.setHorizontalGroup(
            jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );
        jFrame1Layout.setVerticalGroup(
            jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 300, Short.MAX_VALUE)
        );

        turma.setText("Turma");
        turma.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        turma.setBackground(new java.awt.Color(255,255,255));
        turma.setBounds(483, 226, 240, 26);
        turma.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                turmaMouseClicked(evt);
            }
        });

        funcionario.setText("Funcionario");
        funcionario.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        funcionario.setBackground(new java.awt.Color(255,255,255));
        funcionario.setBounds(95, 355, 240, 26);
        funcionario.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                funcionarioMouseClicked(evt);
            }
        });

        laboratorio.setText("Laboratorio");
        laboratorio.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        laboratorio.setBackground(new java.awt.Color(255,255,255));
        laboratorio.setBounds(95, 416, 240, 26);
        laboratorio.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                laboratorioMouseClicked(evt);
            }
        });

        serie.setText("Serie");
        serie.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        serie.setBackground(new java.awt.Color(255,255,255));
        serie.setBounds(477, 290, 240, 26);
        serie.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                serieMouseClicked(evt);
            }
        });

        disciplina.setText("Disciplina");
        disciplina.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        disciplina.setBackground(new java.awt.Color(255,255,255));
        disciplina.setBounds(95, 290, 240, 26);
        disciplina.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                disciplinaMouseClicked(evt);
            }
        });

        {
        	voltarBotao = new JButton();
        	this.add(voltarBotao);
        	voltarBotao.setText("Voltar");
        	voltarBotao.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        	voltarBotao.setBackground(new java.awt.Color(255,255,255));
        	voltarBotao.setBounds(670, 546, 98, 24);
        	voltarBotao.addMouseListener(new MouseAdapter() {
        		public void mouseClicked(MouseEvent evt) {
        			GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.primeiroMenu);
        			GerenciadorDeJanelas.window.setVisible(true);
        		}
        	});
        }
        {
        	caixaMeio = new JLabel();
        	this.add(caixaMeio);
        	caixaMeio.setBounds(378, 122, 56, 394);
        	caixaMeio.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        }

        jLabel1.setFont(new java.awt.Font("Arial",0,36)); // NOI18N
        jLabel1.setText("   Escolha o que deseja visualizar/alterar");
        jLabel1.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        jLabel1.setForeground(new java.awt.Color(0,102,102));
        jLabel1.setBounds(46, 28, 735, 64);

        sala.setText("Sala");
        sala.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        sala.setBackground(new java.awt.Color(255,255,255));
        sala.setBounds(95, 226, 240, 26);
        sala.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                salaMouseClicked(evt);
            }
        });

        voltar.setText("Escola");
        voltar.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        voltar.setBackground(new java.awt.Color(255,255,255));
        voltar.setBounds(477, 355, 240, 26);
        voltar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                escolaMouseClicked(evt);
            }
        });

        this.setBackground(new java.awt.Color(204,204,255));
        this.setPreferredSize(new java.awt.Dimension(800, 600));
    }// </editor-fold>

    private void turmaMouseClicked(java.awt.event.MouseEvent evt) {                                   
    	GerenciadorDeJanelas.selecionaTurma = new SelecionaTurma();
        GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.selecionaTurma);
        GerenciadorDeJanelas.window.setVisible(true);
}                                  

    private void funcionarioMouseClicked(java.awt.event.MouseEvent evt) {
    	SelecionaFuncionario selecionaFuncionario = new SelecionaFuncionario();
        GerenciadorDeJanelas.window.setContentPane(selecionaFuncionario);
        GerenciadorDeJanelas.window.setVisible(true);
}                                        

    private void laboratorioMouseClicked(java.awt.event.MouseEvent evt) {    
    	GerenciadorDeJanelas.selecionaLaboratorio = new SelecionaLaboratorio();
        GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.selecionaLaboratorio);
        GerenciadorDeJanelas.window.setVisible(true);
}                                        

    private void serieMouseClicked(java.awt.event.MouseEvent evt) {                                   
    	GerenciadorDeJanelas.selecionaSerie = new SelecionaSerie();
		GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.selecionaSerie);
		GerenciadorDeJanelas.window.setVisible(true);
}                                  

    private void disciplinaMouseClicked(java.awt.event.MouseEvent evt) {                                        
    	GerenciadorDeJanelas.selecionaDisciplina = new SelecionaDisciplina();
		GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.selecionaDisciplina);
		GerenciadorDeJanelas.window.setVisible(true);
}                                       

    private void alunoMouseClicked(java.awt.event.MouseEvent evt) {                                   
        // TODO add your handling code here:
}                                  

    private void salaMouseClicked(java.awt.event.MouseEvent evt) { 
    	GerenciadorDeJanelas.consultaSala = new ConsultaSala();
    	GerenciadorDeJanelas.window.setVisible(false);
		GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.consultaSala);
		GerenciadorDeJanelas.window.setVisible(true);
}                                 

    private void escolaMouseClicked(java.awt.event.MouseEvent evt) {   
    	GerenciadorDeJanelas.consultaEscola = new ConsultaEscola();
    	GerenciadorDeJanelas.window.setVisible(false);
		GerenciadorDeJanelas.window.setContentPane(GerenciadorDeJanelas.consultaEscola);
		GerenciadorDeJanelas.window.setVisible(true);
}                                   


    // Variables declaration - do not modify
    private javax.swing.JButton disciplina;
    private javax.swing.JButton funcionario;
    private javax.swing.JFrame jFrame1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JButton laboratorio;
    private javax.swing.JButton sala;
    private javax.swing.JButton serie;
    private javax.swing.JButton turma;
    private JLabel caixaMeio;
    private JLabel caixaMaior;
    private JButton voltarBotao;
    private javax.swing.JButton voltar;
    // End of variables declaration

}
